/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.restaurant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 营业目标表实体类
 *
 * @author Blade
 * @since 2025-02-18
 */
@Data
@TableName("restaurant_business_objectives")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "营业目标表")
public class BusinessObjectives extends TenantEntity {

    @Serial
	private static final long serialVersionUID = 1L;

    /**
     * 日期
     */
    @Schema(description = "日期")
    private String businessTime;
    /**
     * 营业目标金额
     */
    @Schema(description = "营业目标金额")
    private BigDecimal businessTargetAmount;
    /**
     * 利润目标金额
     */
    @Schema(description = "利润目标金额")
    private BigDecimal profitTargetAmount;
    /**
     * 经营收入
     */
    @Schema(description = "经营收入")
    private BigDecimal incomeAmount;
	/**
	 * 采购支出
	 */
	@Schema(description = "采购支出")
	private BigDecimal procurementExpenses;
	/**
	 * 预算支出
	 */
	@Schema(description = "预算支出")
	private BigDecimal fixedExpenses;
	/**
	 * 薪资支出
	 */
	@Schema(description = "薪资支出")
	private BigDecimal salaryExpenses;
	/**
	 * 费用支出
	 */
	@Schema(description = "费用支出")
	private BigDecimal otherExpenses;
    /**
     * 总支出
     */
    @Schema(description = "总支出")
    private BigDecimal expendAmount;
	/**
	 * 营业毛利  = 经营收入-采购支出-费用支出
	 */
	@Schema(description = "营业毛利")
	private BigDecimal profitAmount;
	/**
	 * 营业净利 = 营业收入 - 采购支出 - 费用支出 - 预算支出 - 薪资支出 = 营业收入 - 总支出
	 */
	@Schema(description = "营业净利")
	private BigDecimal netProfit;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
